from tqdm import tqdm


def set_tqdm_column_value_filter_data(df_data, column_value, my_func, desc):
    try:
        tqdm.pandas(desc=desc)
        df_data = df_data[df_data[column_value].progress_apply(my_func)]
    except:
        df_data = df_data[df_data[column_value].apply(my_func)]
    return df_data
